{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Importing PulP solver\n",
    "from pulp import *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Demand points\n",
    "demand_points=['Mina Salman','Port of Haifa']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Mina Salman', 'Port of Haifa']"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "demand_points"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Supply Points\n",
    "supply_points=['Port of Buenos Aires','Port of Newcastle','Port of Hedland','Port of Baku','Port of Mina Salman','Port of Ploce','Port of Santos','Port of Douala','Port of Montreal','Port of Vancouver','Port of Shanghai','Port of Alexandria','Port of Marseille','Port of Hamburg_Germany','Port of Tema','Port of Piraeus','Port of Budapest','Port of Reykjavik','Port of Jawaharlal Nehru','Port of Tanjung Priok','Port of Bandar Abbas','Port of Gioia Tauro','Port of Nagoya','Port of Aktau','Penang Port','Port of Manzanillo','Port of Belgrade','Port of Maputo','Port of Rotterdam','Port of Tauranga','Port of Lagos','Port of Oslo','Port of Salalah','Port of Gdansk','Port of Doha','Port of Constanta','Port of Vladivostok','Port of Novorossiysk','Port of St. Petersburg','Port of Bratislava','Port of Koper','Port of Durban','Port of Algeciras','Port of Gothenburg','Port of Basel','Port of Riga','Port of Mersin','Port of Odessa','Port of Jebel Ali','Port of Immingham','Port of New York','Port of Los Angeles','Port of Puerto Cabello']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Port of Buenos Aires',\n",
       " 'Port of Newcastle',\n",
       " 'Port of Hedland',\n",
       " 'Port of Baku',\n",
       " 'Port of Mina Salman',\n",
       " 'Port of Ploce',\n",
       " 'Port of Santos',\n",
       " 'Port of Douala',\n",
       " 'Port of Montreal',\n",
       " 'Port of Vancouver',\n",
       " 'Port of Shanghai',\n",
       " 'Port of Alexandria',\n",
       " 'Port of Marseille',\n",
       " 'Port of Hamburg_Germany',\n",
       " 'Port of Tema',\n",
       " 'Port of Piraeus',\n",
       " 'Port of Budapest',\n",
       " 'Port of Reykjavik',\n",
       " 'Port of Jawaharlal Nehru',\n",
       " 'Port of Tanjung Priok',\n",
       " 'Port of Bandar Abbas',\n",
       " 'Port of Gioia Tauro',\n",
       " 'Port of Nagoya',\n",
       " 'Port of Aktau',\n",
       " 'Penang Port',\n",
       " 'Port of Manzanillo',\n",
       " 'Port of Belgrade',\n",
       " 'Port of Maputo',\n",
       " 'Port of Rotterdam',\n",
       " 'Port of Tauranga',\n",
       " 'Port of Lagos',\n",
       " 'Port of Oslo',\n",
       " 'Port of Salalah',\n",
       " 'Port of Gdansk',\n",
       " 'Port of Doha',\n",
       " 'Port of Constanta',\n",
       " 'Port of Vladivostok',\n",
       " 'Port of Novorossiysk',\n",
       " 'Port of St. Petersburg',\n",
       " 'Port of Bratislava',\n",
       " 'Port of Koper',\n",
       " 'Port of Durban',\n",
       " 'Port of Algeciras',\n",
       " 'Port of Gothenburg',\n",
       " 'Port of Basel',\n",
       " 'Port of Riga',\n",
       " 'Port of Mersin',\n",
       " 'Port of Odessa',\n",
       " 'Port of Jebel Ali',\n",
       " 'Port of Immingham',\n",
       " 'Port of New York',\n",
       " 'Port of Los Angeles',\n",
       " 'Port of Puerto Cabello']"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "supply_points"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the distances\n",
    "distance = dict(zip(supply_points,[dict(zip(demand_points, [9420,8747])),\n",
    "dict(zip(demand_points, [8544,9885])),\n",
    "dict(zip(demand_points, [6034,7374])),\n",
    "dict(zip(demand_points, [5574,2497])),\n",
    "dict(zip(demand_points, [0,3621])),\n",
    "dict(zip(demand_points, [4839,1449])),\n",
    "dict(zip(demand_points, [9662,7667])),\n",
    "dict(zip(demand_points, [8271,6011])),\n",
    "dict(zip(demand_points, [9594,6336])),\n",
    "dict(zip(demand_points, [15871,12461])),\n",
    "dict(zip(demand_points, [6882,8336])),\n",
    "dict(zip(demand_points, [3650,370])),\n",
    "dict(zip(demand_points, [5332,1946])),\n",
    "dict(zip(demand_points, [7561,4173])),\n",
    "dict(zip(demand_points, [8662,5451])),\n",
    "dict(zip(demand_points, [4234,828])),\n",
    "dict(zip(demand_points, [5615,2192])),\n",
    "dict(zip(demand_points, [7980,4529])),\n",
    "dict(zip(demand_points, [1589,3510])),\n",
    "dict(zip(demand_points, [4660,6000])),\n",
    "dict(zip(demand_points, [380,3310])),\n",
    "dict(zip(demand_points, [4620,1230])),\n",
    "dict(zip(demand_points, [7759,9214])),\n",
    "dict(zip(demand_points, [5279,2201])),\n",
    "dict(zip(demand_points, [3856,5310])),\n",
    "dict(zip(demand_points, [13061,9673])),\n",
    "dict(zip(demand_points, [5416,1994])),\n",
    "dict(zip(demand_points, [4563,5056])),\n",
    "dict(zip(demand_points, [7284,3894])),\n",
    "dict(zip(demand_points, [9753,11093])),\n",
    "dict(zip(demand_points, [8570,5662])),\n",
    "dict(zip(demand_points, [7928,4539])),\n",
    "dict(zip(demand_points, [1253,2367])),\n",
    "dict(zip(demand_points, [8277,4889])),\n",
    "dict(zip(demand_points, [140,3553])),\n",
    "dict(zip(demand_points, [4754,1330])),\n",
    "dict(zip(demand_points, [7981,9435])),\n",
    "dict(zip(demand_points, [5139,1715])),\n",
    "dict(zip(demand_points, [8787,5398])),\n",
    "dict(zip(demand_points, [5717,2293])),\n",
    "dict(zip(demand_points, [5057,1667])),\n",
    "dict(zip(demand_points, [4824,5318])),\n",
    "dict(zip(demand_points, [5631,2242])),\n",
    "dict(zip(demand_points, [7825,4436])),\n",
    "dict(zip(demand_points, [6851,3812])),\n",
    "dict(zip(demand_points, [8523,5135])),\n",
    "dict(zip(demand_points, [3831,233])),\n",
    "dict(zip(demand_points, [4957,1533])),\n",
    "dict(zip(demand_points, [327,3366])),\n",
    "dict(zip(demand_points, [7334,3944])),\n",
    "dict(zip(demand_points, [9168,5756])),\n",
    "dict(zip(demand_points, [14552,11048])),\n",
    "dict(zip(demand_points, [10383,6995]))]))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Buenos Aires': {'Mina Salman': 9420, 'Port of Haifa': 8747},\n",
       " 'Port of Newcastle': {'Mina Salman': 8544, 'Port of Haifa': 9885},\n",
       " 'Port of Hedland': {'Mina Salman': 6034, 'Port of Haifa': 7374},\n",
       " 'Port of Baku': {'Mina Salman': 5574, 'Port of Haifa': 2497},\n",
       " 'Port of Mina Salman': {'Mina Salman': 0, 'Port of Haifa': 3621},\n",
       " 'Port of Ploce': {'Mina Salman': 4839, 'Port of Haifa': 1449},\n",
       " 'Port of Santos': {'Mina Salman': 9662, 'Port of Haifa': 7667},\n",
       " 'Port of Douala': {'Mina Salman': 8271, 'Port of Haifa': 6011},\n",
       " 'Port of Montreal': {'Mina Salman': 9594, 'Port of Haifa': 6336},\n",
       " 'Port of Vancouver': {'Mina Salman': 15871, 'Port of Haifa': 12461},\n",
       " 'Port of Shanghai': {'Mina Salman': 6882, 'Port of Haifa': 8336},\n",
       " 'Port of Alexandria': {'Mina Salman': 3650, 'Port of Haifa': 370},\n",
       " 'Port of Marseille': {'Mina Salman': 5332, 'Port of Haifa': 1946},\n",
       " 'Port of Hamburg_Germany': {'Mina Salman': 7561, 'Port of Haifa': 4173},\n",
       " 'Port of Tema': {'Mina Salman': 8662, 'Port of Haifa': 5451},\n",
       " 'Port of Piraeus': {'Mina Salman': 4234, 'Port of Haifa': 828},\n",
       " 'Port of Budapest': {'Mina Salman': 5615, 'Port of Haifa': 2192},\n",
       " 'Port of Reykjavik': {'Mina Salman': 7980, 'Port of Haifa': 4529},\n",
       " 'Port of Jawaharlal Nehru': {'Mina Salman': 1589, 'Port of Haifa': 3510},\n",
       " 'Port of Tanjung Priok': {'Mina Salman': 4660, 'Port of Haifa': 6000},\n",
       " 'Port of Bandar Abbas': {'Mina Salman': 380, 'Port of Haifa': 3310},\n",
       " 'Port of Gioia Tauro': {'Mina Salman': 4620, 'Port of Haifa': 1230},\n",
       " 'Port of Nagoya': {'Mina Salman': 7759, 'Port of Haifa': 9214},\n",
       " 'Port of Aktau': {'Mina Salman': 5279, 'Port of Haifa': 2201},\n",
       " 'Penang Port': {'Mina Salman': 3856, 'Port of Haifa': 5310},\n",
       " 'Port of Manzanillo': {'Mina Salman': 13061, 'Port of Haifa': 9673},\n",
       " 'Port of Belgrade': {'Mina Salman': 5416, 'Port of Haifa': 1994},\n",
       " 'Port of Maputo': {'Mina Salman': 4563, 'Port of Haifa': 5056},\n",
       " 'Port of Rotterdam': {'Mina Salman': 7284, 'Port of Haifa': 3894},\n",
       " 'Port of Tauranga': {'Mina Salman': 9753, 'Port of Haifa': 11093},\n",
       " 'Port of Lagos': {'Mina Salman': 8570, 'Port of Haifa': 5662},\n",
       " 'Port of Oslo': {'Mina Salman': 7928, 'Port of Haifa': 4539},\n",
       " 'Port of Salalah': {'Mina Salman': 1253, 'Port of Haifa': 2367},\n",
       " 'Port of Gdansk': {'Mina Salman': 8277, 'Port of Haifa': 4889},\n",
       " 'Port of Doha': {'Mina Salman': 140, 'Port of Haifa': 3553},\n",
       " 'Port of Constanta': {'Mina Salman': 4754, 'Port of Haifa': 1330},\n",
       " 'Port of Vladivostok': {'Mina Salman': 7981, 'Port of Haifa': 9435},\n",
       " 'Port of Novorossiysk': {'Mina Salman': 5139, 'Port of Haifa': 1715},\n",
       " 'Port of St. Petersburg': {'Mina Salman': 8787, 'Port of Haifa': 5398},\n",
       " 'Port of Bratislava': {'Mina Salman': 5717, 'Port of Haifa': 2293},\n",
       " 'Port of Koper': {'Mina Salman': 5057, 'Port of Haifa': 1667},\n",
       " 'Port of Durban': {'Mina Salman': 4824, 'Port of Haifa': 5318},\n",
       " 'Port of Algeciras': {'Mina Salman': 5631, 'Port of Haifa': 2242},\n",
       " 'Port of Gothenburg': {'Mina Salman': 7825, 'Port of Haifa': 4436},\n",
       " 'Port of Basel': {'Mina Salman': 6851, 'Port of Haifa': 3812},\n",
       " 'Port of Riga': {'Mina Salman': 8523, 'Port of Haifa': 5135},\n",
       " 'Port of Mersin': {'Mina Salman': 3831, 'Port of Haifa': 233},\n",
       " 'Port of Odessa': {'Mina Salman': 4957, 'Port of Haifa': 1533},\n",
       " 'Port of Jebel Ali': {'Mina Salman': 327, 'Port of Haifa': 3366},\n",
       " 'Port of Immingham': {'Mina Salman': 7334, 'Port of Haifa': 3944},\n",
       " 'Port of New York': {'Mina Salman': 9168, 'Port of Haifa': 5756},\n",
       " 'Port of Los Angeles': {'Mina Salman': 14552, 'Port of Haifa': 11048},\n",
       " 'Port of Puerto Cabello': {'Mina Salman': 10383, 'Port of Haifa': 6995}}"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "distance"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Aluminium Demand\n",
    "aluminium_demand=dict(zip(demand_points, [316298748.3,275071343.7]))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Mina Salman': 316298748.3, 'Port of Haifa': 275071343.7}"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "aluminium_demand"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Aluminium Supply\n",
    "aluminium_supply=dict(zip(supply_points, [1750418.373,1108486.991,5259760.632,152870.6086,5846232.525,583785.2387,2405044.613,286578.9516,7130120.719,2122464.834,267850261.2,1178963.884,2903970.469,2541200.847,159171.9705,662387.6583,7691376.454,56655403.55,5188197.412,137744624.1,1888157.9,28443.63952,724801.9126,1052630.169,1883968.768,110143.3931,380422.1379,8080791.105,964428.5326,1312543.345,71076.45981,5162036.898,1900360.293,148867.4242,2820733.861,1017712.828,7634624.871,3723801.549,3766639.035,1121081.872,351723.7786,2886609.143,1384623.344,533795.8943,105019.7955,5143227.069,237073.6777,299230.0617,26856798.65,0,\n",
    "0,0,557404.5143])) "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Buenos Aires': 1750418.373,\n",
       " 'Port of Newcastle': 1108486.991,\n",
       " 'Port of Hedland': 5259760.632,\n",
       " 'Port of Baku': 152870.6086,\n",
       " 'Port of Mina Salman': 5846232.525,\n",
       " 'Port of Ploce': 583785.2387,\n",
       " 'Port of Santos': 2405044.613,\n",
       " 'Port of Douala': 286578.9516,\n",
       " 'Port of Montreal': 7130120.719,\n",
       " 'Port of Vancouver': 2122464.834,\n",
       " 'Port of Shanghai': 267850261.2,\n",
       " 'Port of Alexandria': 1178963.884,\n",
       " 'Port of Marseille': 2903970.469,\n",
       " 'Port of Hamburg_Germany': 2541200.847,\n",
       " 'Port of Tema': 159171.9705,\n",
       " 'Port of Piraeus': 662387.6583,\n",
       " 'Port of Budapest': 7691376.454,\n",
       " 'Port of Reykjavik': 56655403.55,\n",
       " 'Port of Jawaharlal Nehru': 5188197.412,\n",
       " 'Port of Tanjung Priok': 137744624.1,\n",
       " 'Port of Bandar Abbas': 1888157.9,\n",
       " 'Port of Gioia Tauro': 28443.63952,\n",
       " 'Port of Nagoya': 724801.9126,\n",
       " 'Port of Aktau': 1052630.169,\n",
       " 'Penang Port': 1883968.768,\n",
       " 'Port of Manzanillo': 110143.3931,\n",
       " 'Port of Belgrade': 380422.1379,\n",
       " 'Port of Maputo': 8080791.105,\n",
       " 'Port of Rotterdam': 964428.5326,\n",
       " 'Port of Tauranga': 1312543.345,\n",
       " 'Port of Lagos': 71076.45981,\n",
       " 'Port of Oslo': 5162036.898,\n",
       " 'Port of Salalah': 1900360.293,\n",
       " 'Port of Gdansk': 148867.4242,\n",
       " 'Port of Doha': 2820733.861,\n",
       " 'Port of Constanta': 1017712.828,\n",
       " 'Port of Vladivostok': 7634624.871,\n",
       " 'Port of Novorossiysk': 3723801.549,\n",
       " 'Port of St. Petersburg': 3766639.035,\n",
       " 'Port of Bratislava': 1121081.872,\n",
       " 'Port of Koper': 351723.7786,\n",
       " 'Port of Durban': 2886609.143,\n",
       " 'Port of Algeciras': 1384623.344,\n",
       " 'Port of Gothenburg': 533795.8943,\n",
       " 'Port of Basel': 105019.7955,\n",
       " 'Port of Riga': 5143227.069,\n",
       " 'Port of Mersin': 237073.6777,\n",
       " 'Port of Odessa': 299230.0617,\n",
       " 'Port of Jebel Ali': 26856798.65,\n",
       " 'Port of Immingham': 0,\n",
       " 'Port of New York': 0,\n",
       " 'Port of Los Angeles': 0,\n",
       " 'Port of Puerto Cabello': 557404.5143}"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "aluminium_supply"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Set Problem Variables\n",
    "prob = LpProblem(\"Transportation\", LpMinimize)\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "None\n",
       "VARIABLES"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Set Problem Variables\n",
    "routes = [(i,j) for i in supply_points for j in demand_points]\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('Port of Buenos Aires', 'Mina Salman'),\n",
       " ('Port of Buenos Aires', 'Port of Haifa'),\n",
       " ('Port of Newcastle', 'Mina Salman'),\n",
       " ('Port of Newcastle', 'Port of Haifa'),\n",
       " ('Port of Hedland', 'Mina Salman'),\n",
       " ('Port of Hedland', 'Port of Haifa'),\n",
       " ('Port of Baku', 'Mina Salman'),\n",
       " ('Port of Baku', 'Port of Haifa'),\n",
       " ('Port of Mina Salman', 'Mina Salman'),\n",
       " ('Port of Mina Salman', 'Port of Haifa'),\n",
       " ('Port of Ploce', 'Mina Salman'),\n",
       " ('Port of Ploce', 'Port of Haifa'),\n",
       " ('Port of Santos', 'Mina Salman'),\n",
       " ('Port of Santos', 'Port of Haifa'),\n",
       " ('Port of Douala', 'Mina Salman'),\n",
       " ('Port of Douala', 'Port of Haifa'),\n",
       " ('Port of Montreal', 'Mina Salman'),\n",
       " ('Port of Montreal', 'Port of Haifa'),\n",
       " ('Port of Vancouver', 'Mina Salman'),\n",
       " ('Port of Vancouver', 'Port of Haifa'),\n",
       " ('Port of Shanghai', 'Mina Salman'),\n",
       " ('Port of Shanghai', 'Port of Haifa'),\n",
       " ('Port of Alexandria', 'Mina Salman'),\n",
       " ('Port of Alexandria', 'Port of Haifa'),\n",
       " ('Port of Marseille', 'Mina Salman'),\n",
       " ('Port of Marseille', 'Port of Haifa'),\n",
       " ('Port of Hamburg_Germany', 'Mina Salman'),\n",
       " ('Port of Hamburg_Germany', 'Port of Haifa'),\n",
       " ('Port of Tema', 'Mina Salman'),\n",
       " ('Port of Tema', 'Port of Haifa'),\n",
       " ('Port of Piraeus', 'Mina Salman'),\n",
       " ('Port of Piraeus', 'Port of Haifa'),\n",
       " ('Port of Budapest', 'Mina Salman'),\n",
       " ('Port of Budapest', 'Port of Haifa'),\n",
       " ('Port of Reykjavik', 'Mina Salman'),\n",
       " ('Port of Reykjavik', 'Port of Haifa'),\n",
       " ('Port of Jawaharlal Nehru', 'Mina Salman'),\n",
       " ('Port of Jawaharlal Nehru', 'Port of Haifa'),\n",
       " ('Port of Tanjung Priok', 'Mina Salman'),\n",
       " ('Port of Tanjung Priok', 'Port of Haifa'),\n",
       " ('Port of Bandar Abbas', 'Mina Salman'),\n",
       " ('Port of Bandar Abbas', 'Port of Haifa'),\n",
       " ('Port of Gioia Tauro', 'Mina Salman'),\n",
       " ('Port of Gioia Tauro', 'Port of Haifa'),\n",
       " ('Port of Nagoya', 'Mina Salman'),\n",
       " ('Port of Nagoya', 'Port of Haifa'),\n",
       " ('Port of Aktau', 'Mina Salman'),\n",
       " ('Port of Aktau', 'Port of Haifa'),\n",
       " ('Penang Port', 'Mina Salman'),\n",
       " ('Penang Port', 'Port of Haifa'),\n",
       " ('Port of Manzanillo', 'Mina Salman'),\n",
       " ('Port of Manzanillo', 'Port of Haifa'),\n",
       " ('Port of Belgrade', 'Mina Salman'),\n",
       " ('Port of Belgrade', 'Port of Haifa'),\n",
       " ('Port of Maputo', 'Mina Salman'),\n",
       " ('Port of Maputo', 'Port of Haifa'),\n",
       " ('Port of Rotterdam', 'Mina Salman'),\n",
       " ('Port of Rotterdam', 'Port of Haifa'),\n",
       " ('Port of Tauranga', 'Mina Salman'),\n",
       " ('Port of Tauranga', 'Port of Haifa'),\n",
       " ('Port of Lagos', 'Mina Salman'),\n",
       " ('Port of Lagos', 'Port of Haifa'),\n",
       " ('Port of Oslo', 'Mina Salman'),\n",
       " ('Port of Oslo', 'Port of Haifa'),\n",
       " ('Port of Salalah', 'Mina Salman'),\n",
       " ('Port of Salalah', 'Port of Haifa'),\n",
       " ('Port of Gdansk', 'Mina Salman'),\n",
       " ('Port of Gdansk', 'Port of Haifa'),\n",
       " ('Port of Doha', 'Mina Salman'),\n",
       " ('Port of Doha', 'Port of Haifa'),\n",
       " ('Port of Constanta', 'Mina Salman'),\n",
       " ('Port of Constanta', 'Port of Haifa'),\n",
       " ('Port of Vladivostok', 'Mina Salman'),\n",
       " ('Port of Vladivostok', 'Port of Haifa'),\n",
       " ('Port of Novorossiysk', 'Mina Salman'),\n",
       " ('Port of Novorossiysk', 'Port of Haifa'),\n",
       " ('Port of St. Petersburg', 'Mina Salman'),\n",
       " ('Port of St. Petersburg', 'Port of Haifa'),\n",
       " ('Port of Bratislava', 'Mina Salman'),\n",
       " ('Port of Bratislava', 'Port of Haifa'),\n",
       " ('Port of Koper', 'Mina Salman'),\n",
       " ('Port of Koper', 'Port of Haifa'),\n",
       " ('Port of Durban', 'Mina Salman'),\n",
       " ('Port of Durban', 'Port of Haifa'),\n",
       " ('Port of Algeciras', 'Mina Salman'),\n",
       " ('Port of Algeciras', 'Port of Haifa'),\n",
       " ('Port of Gothenburg', 'Mina Salman'),\n",
       " ('Port of Gothenburg', 'Port of Haifa'),\n",
       " ('Port of Basel', 'Mina Salman'),\n",
       " ('Port of Basel', 'Port of Haifa'),\n",
       " ('Port of Riga', 'Mina Salman'),\n",
       " ('Port of Riga', 'Port of Haifa'),\n",
       " ('Port of Mersin', 'Mina Salman'),\n",
       " ('Port of Mersin', 'Port of Haifa'),\n",
       " ('Port of Odessa', 'Mina Salman'),\n",
       " ('Port of Odessa', 'Port of Haifa'),\n",
       " ('Port of Jebel Ali', 'Mina Salman'),\n",
       " ('Port of Jebel Ali', 'Port of Haifa'),\n",
       " ('Port of Immingham', 'Mina Salman'),\n",
       " ('Port of Immingham', 'Port of Haifa'),\n",
       " ('Port of New York', 'Mina Salman'),\n",
       " ('Port of New York', 'Port of Haifa'),\n",
       " ('Port of Los Angeles', 'Mina Salman'),\n",
       " ('Port of Los Angeles', 'Port of Haifa'),\n",
       " ('Port of Puerto Cabello', 'Mina Salman'),\n",
       " ('Port of Puerto Cabello', 'Port of Haifa')]"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "routes"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Decision Variables\n",
    "X = LpVariable.dicts(\"ShipmentAmount\",(supply_points, demand_points),0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Buenos Aires': {'Mina Salman': ShipmentAmount_Port_of_Buenos_Aires_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Buenos_Aires_Port_of_Haifa},\n",
       " 'Port of Newcastle': {'Mina Salman': ShipmentAmount_Port_of_Newcastle_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Newcastle_Port_of_Haifa},\n",
       " 'Port of Hedland': {'Mina Salman': ShipmentAmount_Port_of_Hedland_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Hedland_Port_of_Haifa},\n",
       " 'Port of Baku': {'Mina Salman': ShipmentAmount_Port_of_Baku_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Baku_Port_of_Haifa},\n",
       " 'Port of Mina Salman': {'Mina Salman': ShipmentAmount_Port_of_Mina_Salman_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Mina_Salman_Port_of_Haifa},\n",
       " 'Port of Ploce': {'Mina Salman': ShipmentAmount_Port_of_Ploce_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Ploce_Port_of_Haifa},\n",
       " 'Port of Santos': {'Mina Salman': ShipmentAmount_Port_of_Santos_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Santos_Port_of_Haifa},\n",
       " 'Port of Douala': {'Mina Salman': ShipmentAmount_Port_of_Douala_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Douala_Port_of_Haifa},\n",
       " 'Port of Montreal': {'Mina Salman': ShipmentAmount_Port_of_Montreal_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Montreal_Port_of_Haifa},\n",
       " 'Port of Vancouver': {'Mina Salman': ShipmentAmount_Port_of_Vancouver_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Vancouver_Port_of_Haifa},\n",
       " 'Port of Shanghai': {'Mina Salman': ShipmentAmount_Port_of_Shanghai_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Shanghai_Port_of_Haifa},\n",
       " 'Port of Alexandria': {'Mina Salman': ShipmentAmount_Port_of_Alexandria_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Alexandria_Port_of_Haifa},\n",
       " 'Port of Marseille': {'Mina Salman': ShipmentAmount_Port_of_Marseille_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Marseille_Port_of_Haifa},\n",
       " 'Port of Hamburg_Germany': {'Mina Salman': ShipmentAmount_Port_of_Hamburg_Germany_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Haifa},\n",
       " 'Port of Tema': {'Mina Salman': ShipmentAmount_Port_of_Tema_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Tema_Port_of_Haifa},\n",
       " 'Port of Piraeus': {'Mina Salman': ShipmentAmount_Port_of_Piraeus_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Piraeus_Port_of_Haifa},\n",
       " 'Port of Budapest': {'Mina Salman': ShipmentAmount_Port_of_Budapest_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Budapest_Port_of_Haifa},\n",
       " 'Port of Reykjavik': {'Mina Salman': ShipmentAmount_Port_of_Reykjavik_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Reykjavik_Port_of_Haifa},\n",
       " 'Port of Jawaharlal Nehru': {'Mina Salman': ShipmentAmount_Port_of_Jawaharlal_Nehru_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Haifa},\n",
       " 'Port of Tanjung Priok': {'Mina Salman': ShipmentAmount_Port_of_Tanjung_Priok_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Haifa},\n",
       " 'Port of Bandar Abbas': {'Mina Salman': ShipmentAmount_Port_of_Bandar_Abbas_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Haifa},\n",
       " 'Port of Gioia Tauro': {'Mina Salman': ShipmentAmount_Port_of_Gioia_Tauro_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Haifa},\n",
       " 'Port of Nagoya': {'Mina Salman': ShipmentAmount_Port_of_Nagoya_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Nagoya_Port_of_Haifa},\n",
       " 'Port of Aktau': {'Mina Salman': ShipmentAmount_Port_of_Aktau_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Aktau_Port_of_Haifa},\n",
       " 'Penang Port': {'Mina Salman': ShipmentAmount_Penang_Port_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Penang_Port_Port_of_Haifa},\n",
       " 'Port of Manzanillo': {'Mina Salman': ShipmentAmount_Port_of_Manzanillo_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Manzanillo_Port_of_Haifa},\n",
       " 'Port of Belgrade': {'Mina Salman': ShipmentAmount_Port_of_Belgrade_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Belgrade_Port_of_Haifa},\n",
       " 'Port of Maputo': {'Mina Salman': ShipmentAmount_Port_of_Maputo_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Maputo_Port_of_Haifa},\n",
       " 'Port of Rotterdam': {'Mina Salman': ShipmentAmount_Port_of_Rotterdam_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Rotterdam_Port_of_Haifa},\n",
       " 'Port of Tauranga': {'Mina Salman': ShipmentAmount_Port_of_Tauranga_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Tauranga_Port_of_Haifa},\n",
       " 'Port of Lagos': {'Mina Salman': ShipmentAmount_Port_of_Lagos_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Lagos_Port_of_Haifa},\n",
       " 'Port of Oslo': {'Mina Salman': ShipmentAmount_Port_of_Oslo_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Oslo_Port_of_Haifa},\n",
       " 'Port of Salalah': {'Mina Salman': ShipmentAmount_Port_of_Salalah_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Salalah_Port_of_Haifa},\n",
       " 'Port of Gdansk': {'Mina Salman': ShipmentAmount_Port_of_Gdansk_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Gdansk_Port_of_Haifa},\n",
       " 'Port of Doha': {'Mina Salman': ShipmentAmount_Port_of_Doha_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Doha_Port_of_Haifa},\n",
       " 'Port of Constanta': {'Mina Salman': ShipmentAmount_Port_of_Constanta_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Constanta_Port_of_Haifa},\n",
       " 'Port of Vladivostok': {'Mina Salman': ShipmentAmount_Port_of_Vladivostok_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Vladivostok_Port_of_Haifa},\n",
       " 'Port of Novorossiysk': {'Mina Salman': ShipmentAmount_Port_of_Novorossiysk_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Novorossiysk_Port_of_Haifa},\n",
       " 'Port of St. Petersburg': {'Mina Salman': ShipmentAmount_Port_of_St._Petersburg_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_St._Petersburg_Port_of_Haifa},\n",
       " 'Port of Bratislava': {'Mina Salman': ShipmentAmount_Port_of_Bratislava_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Bratislava_Port_of_Haifa},\n",
       " 'Port of Koper': {'Mina Salman': ShipmentAmount_Port_of_Koper_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Koper_Port_of_Haifa},\n",
       " 'Port of Durban': {'Mina Salman': ShipmentAmount_Port_of_Durban_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Durban_Port_of_Haifa},\n",
       " 'Port of Algeciras': {'Mina Salman': ShipmentAmount_Port_of_Algeciras_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Algeciras_Port_of_Haifa},\n",
       " 'Port of Gothenburg': {'Mina Salman': ShipmentAmount_Port_of_Gothenburg_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Gothenburg_Port_of_Haifa},\n",
       " 'Port of Basel': {'Mina Salman': ShipmentAmount_Port_of_Basel_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Basel_Port_of_Haifa},\n",
       " 'Port of Riga': {'Mina Salman': ShipmentAmount_Port_of_Riga_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Riga_Port_of_Haifa},\n",
       " 'Port of Mersin': {'Mina Salman': ShipmentAmount_Port_of_Mersin_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Mersin_Port_of_Haifa},\n",
       " 'Port of Odessa': {'Mina Salman': ShipmentAmount_Port_of_Odessa_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Odessa_Port_of_Haifa},\n",
       " 'Port of Jebel Ali': {'Mina Salman': ShipmentAmount_Port_of_Jebel_Ali_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Jebel_Ali_Port_of_Haifa},\n",
       " 'Port of Immingham': {'Mina Salman': ShipmentAmount_Port_of_Immingham_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Immingham_Port_of_Haifa},\n",
       " 'Port of New York': {'Mina Salman': ShipmentAmount_Port_of_New_York_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_New_York_Port_of_Haifa},\n",
       " 'Port of Los Angeles': {'Mina Salman': ShipmentAmount_Port_of_Los_Angeles_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Los_Angeles_Port_of_Haifa},\n",
       " 'Port of Puerto Cabello': {'Mina Salman': ShipmentAmount_Port_of_Puerto_Cabello_Mina_Salman,\n",
       "  'Port of Haifa': ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Haifa}}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "X"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Objective Function\n",
    "prob += sum(X[i][j]*distance[i][j] for (i,j) in routes)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "3856*ShipmentAmount_Penang_Port_Mina_Salman + 5310*ShipmentAmount_Penang_Port_Port_of_Haifa + 5279*ShipmentAmount_Port_of_Aktau_Mina_Salman + 2201*ShipmentAmount_Port_of_Aktau_Port_of_Haifa + 3650*ShipmentAmount_Port_of_Alexandria_Mina_Salman + 370*ShipmentAmount_Port_of_Alexandria_Port_of_Haifa + 5631*ShipmentAmount_Port_of_Algeciras_Mina_Salman + 2242*ShipmentAmount_Port_of_Algeciras_Port_of_Haifa + 5574*ShipmentAmount_Port_of_Baku_Mina_Salman + 2497*ShipmentAmount_Port_of_Baku_Port_of_Haifa + 380*ShipmentAmount_Port_of_Bandar_Abbas_Mina_Salman + 3310*ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Haifa + 6851*ShipmentAmount_Port_of_Basel_Mina_Salman + 3812*ShipmentAmount_Port_of_Basel_Port_of_Haifa + 5416*ShipmentAmount_Port_of_Belgrade_Mina_Salman + 1994*ShipmentAmount_Port_of_Belgrade_Port_of_Haifa + 5717*ShipmentAmount_Port_of_Bratislava_Mina_Salman + 2293*ShipmentAmount_Port_of_Bratislava_Port_of_Haifa + 5615*ShipmentAmount_Port_of_Budapest_Mina_Salman + 2192*ShipmentAmount_Port_of_Budapest_Port_of_Haifa + 9420*ShipmentAmount_Port_of_Buenos_Aires_Mina_Salman + 8747*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Haifa + 4754*ShipmentAmount_Port_of_Constanta_Mina_Salman + 1330*ShipmentAmount_Port_of_Constanta_Port_of_Haifa + 140*ShipmentAmount_Port_of_Doha_Mina_Salman + 3553*ShipmentAmount_Port_of_Doha_Port_of_Haifa + 8271*ShipmentAmount_Port_of_Douala_Mina_Salman + 6011*ShipmentAmount_Port_of_Douala_Port_of_Haifa + 4824*ShipmentAmount_Port_of_Durban_Mina_Salman + 5318*ShipmentAmount_Port_of_Durban_Port_of_Haifa + 8277*ShipmentAmount_Port_of_Gdansk_Mina_Salman + 4889*ShipmentAmount_Port_of_Gdansk_Port_of_Haifa + 4620*ShipmentAmount_Port_of_Gioia_Tauro_Mina_Salman + 1230*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Haifa + 7825*ShipmentAmount_Port_of_Gothenburg_Mina_Salman + 4436*ShipmentAmount_Port_of_Gothenburg_Port_of_Haifa + 7561*ShipmentAmount_Port_of_Hamburg_Germany_Mina_Salman + 4173*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Haifa + 6034*ShipmentAmount_Port_of_Hedland_Mina_Salman + 7374*ShipmentAmount_Port_of_Hedland_Port_of_Haifa + 7334*ShipmentAmount_Port_of_Immingham_Mina_Salman + 3944*ShipmentAmount_Port_of_Immingham_Port_of_Haifa + 1589*ShipmentAmount_Port_of_Jawaharlal_Nehru_Mina_Salman + 3510*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Haifa + 327*ShipmentAmount_Port_of_Jebel_Ali_Mina_Salman + 3366*ShipmentAmount_Port_of_Jebel_Ali_Port_of_Haifa + 5057*ShipmentAmount_Port_of_Koper_Mina_Salman + 1667*ShipmentAmount_Port_of_Koper_Port_of_Haifa + 8570*ShipmentAmount_Port_of_Lagos_Mina_Salman + 5662*ShipmentAmount_Port_of_Lagos_Port_of_Haifa + 14552*ShipmentAmount_Port_of_Los_Angeles_Mina_Salman + 11048*ShipmentAmount_Port_of_Los_Angeles_Port_of_Haifa + 13061*ShipmentAmount_Port_of_Manzanillo_Mina_Salman + 9673*ShipmentAmount_Port_of_Manzanillo_Port_of_Haifa + 4563*ShipmentAmount_Port_of_Maputo_Mina_Salman + 5056*ShipmentAmount_Port_of_Maputo_Port_of_Haifa + 5332*ShipmentAmount_Port_of_Marseille_Mina_Salman + 1946*ShipmentAmount_Port_of_Marseille_Port_of_Haifa + 3831*ShipmentAmount_Port_of_Mersin_Mina_Salman + 233*ShipmentAmount_Port_of_Mersin_Port_of_Haifa + 3621*ShipmentAmount_Port_of_Mina_Salman_Port_of_Haifa + 9594*ShipmentAmount_Port_of_Montreal_Mina_Salman + 6336*ShipmentAmount_Port_of_Montreal_Port_of_Haifa + 7759*ShipmentAmount_Port_of_Nagoya_Mina_Salman + 9214*ShipmentAmount_Port_of_Nagoya_Port_of_Haifa + 9168*ShipmentAmount_Port_of_New_York_Mina_Salman + 5756*ShipmentAmount_Port_of_New_York_Port_of_Haifa + 8544*ShipmentAmount_Port_of_Newcastle_Mina_Salman + 9885*ShipmentAmount_Port_of_Newcastle_Port_of_Haifa + 5139*ShipmentAmount_Port_of_Novorossiysk_Mina_Salman + 1715*ShipmentAmount_Port_of_Novorossiysk_Port_of_Haifa + 4957*ShipmentAmount_Port_of_Odessa_Mina_Salman + 1533*ShipmentAmount_Port_of_Odessa_Port_of_Haifa + 7928*ShipmentAmount_Port_of_Oslo_Mina_Salman + 4539*ShipmentAmount_Port_of_Oslo_Port_of_Haifa + 4234*ShipmentAmount_Port_of_Piraeus_Mina_Salman + 828*ShipmentAmount_Port_of_Piraeus_Port_of_Haifa + 4839*ShipmentAmount_Port_of_Ploce_Mina_Salman + 1449*ShipmentAmount_Port_of_Ploce_Port_of_Haifa + 10383*ShipmentAmount_Port_of_Puerto_Cabello_Mina_Salman + 6995*ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Haifa + 7980*ShipmentAmount_Port_of_Reykjavik_Mina_Salman + 4529*ShipmentAmount_Port_of_Reykjavik_Port_of_Haifa + 8523*ShipmentAmount_Port_of_Riga_Mina_Salman + 5135*ShipmentAmount_Port_of_Riga_Port_of_Haifa + 7284*ShipmentAmount_Port_of_Rotterdam_Mina_Salman + 3894*ShipmentAmount_Port_of_Rotterdam_Port_of_Haifa + 1253*ShipmentAmount_Port_of_Salalah_Mina_Salman + 2367*ShipmentAmount_Port_of_Salalah_Port_of_Haifa + 9662*ShipmentAmount_Port_of_Santos_Mina_Salman + 7667*ShipmentAmount_Port_of_Santos_Port_of_Haifa + 6882*ShipmentAmount_Port_of_Shanghai_Mina_Salman + 8336*ShipmentAmount_Port_of_Shanghai_Port_of_Haifa + 8787*ShipmentAmount_Port_of_St._Petersburg_Mina_Salman + 5398*ShipmentAmount_Port_of_St._Petersburg_Port_of_Haifa + 4660*ShipmentAmount_Port_of_Tanjung_Priok_Mina_Salman + 6000*ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Haifa + 9753*ShipmentAmount_Port_of_Tauranga_Mina_Salman + 11093*ShipmentAmount_Port_of_Tauranga_Port_of_Haifa + 8662*ShipmentAmount_Port_of_Tema_Mina_Salman + 5451*ShipmentAmount_Port_of_Tema_Port_of_Haifa + 15871*ShipmentAmount_Port_of_Vancouver_Mina_Salman + 12461*ShipmentAmount_Port_of_Vancouver_Port_of_Haifa + 7981*ShipmentAmount_Port_of_Vladivostok_Mina_Salman + 9435*ShipmentAmount_Port_of_Vladivostok_Port_of_Haifa + 0\n",
       "VARIABLES\n",
       "ShipmentAmount_Penang_Port_Mina_Salman Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Aktau_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Aktau_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Baku_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Baku_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Bandar_Abbas_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Basel_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Basel_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Belgrade_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Belgrade_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Bratislava_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Bratislava_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Constanta_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Constanta_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Doha_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Douala_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Douala_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Durban_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Gothenburg_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Gothenburg_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Hedland_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Hedland_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Koper_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Koper_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Maputo_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Maputo_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Mina_Salman_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_New_York_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Newcastle_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Newcastle_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Odessa_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Odessa_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Oslo_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Oslo_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Piraeus_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Piraeus_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Ploce_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Ploce_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Puerto_Cabello_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Reykjavik_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Reykjavik_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Riga_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Riga_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Santos_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Tanjung_Priok_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Tauranga_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Tauranga_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Tema_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Tema_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Haifa Continuous"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "3856*ShipmentAmount_Penang_Port_Mina_Salman + 5310*ShipmentAmount_Penang_Port_Port_of_Haifa + 5279*ShipmentAmount_Port_of_Aktau_Mina_Salman + 2201*ShipmentAmount_Port_of_Aktau_Port_of_Haifa + 3650*ShipmentAmount_Port_of_Alexandria_Mina_Salman + 370*ShipmentAmount_Port_of_Alexandria_Port_of_Haifa + 5631*ShipmentAmount_Port_of_Algeciras_Mina_Salman + 2242*ShipmentAmount_Port_of_Algeciras_Port_of_Haifa + 5574*ShipmentAmount_Port_of_Baku_Mina_Salman + 2497*ShipmentAmount_Port_of_Baku_Port_of_Haifa + 380*ShipmentAmount_Port_of_Bandar_Abbas_Mina_Salman + 3310*ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Haifa + 6851*ShipmentAmount_Port_of_Basel_Mina_Salman + 3812*ShipmentAmount_Port_of_Basel_Port_of_Haifa + 5416*ShipmentAmount_Port_of_Belgrade_Mina_Salman + 1994*ShipmentAmount_Port_of_Belgrade_Port_of_Haifa + 5717*ShipmentAmount_Port_of_Bratislava_Mina_Salman + 2293*ShipmentAmount_Port_of_Bratislava_Port_of_Haifa + 5615*ShipmentAmount_Port_of_Budapest_Mina_Salman + 2192*ShipmentAmount_Port_of_Budapest_Port_of_Haifa + 9420*ShipmentAmount_Port_of_Buenos_Aires_Mina_Salman + 8747*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Haifa + 4754*ShipmentAmount_Port_of_Constanta_Mina_Salman + 1330*ShipmentAmount_Port_of_Constanta_Port_of_Haifa + 140*ShipmentAmount_Port_of_Doha_Mina_Salman + 3553*ShipmentAmount_Port_of_Doha_Port_of_Haifa + 8271*ShipmentAmount_Port_of_Douala_Mina_Salman + 6011*ShipmentAmount_Port_of_Douala_Port_of_Haifa + 4824*ShipmentAmount_Port_of_Durban_Mina_Salman + 5318*ShipmentAmount_Port_of_Durban_Port_of_Haifa + 8277*ShipmentAmount_Port_of_Gdansk_Mina_Salman + 4889*ShipmentAmount_Port_of_Gdansk_Port_of_Haifa + 4620*ShipmentAmount_Port_of_Gioia_Tauro_Mina_Salman + 1230*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Haifa + 7825*ShipmentAmount_Port_of_Gothenburg_Mina_Salman + 4436*ShipmentAmount_Port_of_Gothenburg_Port_of_Haifa + 7561*ShipmentAmount_Port_of_Hamburg_Germany_Mina_Salman + 4173*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Haifa + 6034*ShipmentAmount_Port_of_Hedland_Mina_Salman + 7374*ShipmentAmount_Port_of_Hedland_Port_of_Haifa + 7334*ShipmentAmount_Port_of_Immingham_Mina_Salman + 3944*ShipmentAmount_Port_of_Immingham_Port_of_Haifa + 1589*ShipmentAmount_Port_of_Jawaharlal_Nehru_Mina_Salman + 3510*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Haifa + 327*ShipmentAmount_Port_of_Jebel_Ali_Mina_Salman + 3366*ShipmentAmount_Port_of_Jebel_Ali_Port_of_Haifa + 5057*ShipmentAmount_Port_of_Koper_Mina_Salman + 1667*ShipmentAmount_Port_of_Koper_Port_of_Haifa + 8570*ShipmentAmount_Port_of_Lagos_Mina_Salman + 5662*ShipmentAmount_Port_of_Lagos_Port_of_Haifa + 14552*ShipmentAmount_Port_of_Los_Angeles_Mina_Salman + 11048*ShipmentAmount_Port_of_Los_Angeles_Port_of_Haifa + 13061*ShipmentAmount_Port_of_Manzanillo_Mina_Salman + 9673*ShipmentAmount_Port_of_Manzanillo_Port_of_Haifa + 4563*ShipmentAmount_Port_of_Maputo_Mina_Salman + 5056*ShipmentAmount_Port_of_Maputo_Port_of_Haifa + 5332*ShipmentAmount_Port_of_Marseille_Mina_Salman + 1946*ShipmentAmount_Port_of_Marseille_Port_of_Haifa + 3831*ShipmentAmount_Port_of_Mersin_Mina_Salman + 233*ShipmentAmount_Port_of_Mersin_Port_of_Haifa + 3621*ShipmentAmount_Port_of_Mina_Salman_Port_of_Haifa + 9594*ShipmentAmount_Port_of_Montreal_Mina_Salman + 6336*ShipmentAmount_Port_of_Montreal_Port_of_Haifa + 7759*ShipmentAmount_Port_of_Nagoya_Mina_Salman + 9214*ShipmentAmount_Port_of_Nagoya_Port_of_Haifa + 9168*ShipmentAmount_Port_of_New_York_Mina_Salman + 5756*ShipmentAmount_Port_of_New_York_Port_of_Haifa + 8544*ShipmentAmount_Port_of_Newcastle_Mina_Salman + 9885*ShipmentAmount_Port_of_Newcastle_Port_of_Haifa + 5139*ShipmentAmount_Port_of_Novorossiysk_Mina_Salman + 1715*ShipmentAmount_Port_of_Novorossiysk_Port_of_Haifa + 4957*ShipmentAmount_Port_of_Odessa_Mina_Salman + 1533*ShipmentAmount_Port_of_Odessa_Port_of_Haifa + 7928*ShipmentAmount_Port_of_Oslo_Mina_Salman + 4539*ShipmentAmount_Port_of_Oslo_Port_of_Haifa + 4234*ShipmentAmount_Port_of_Piraeus_Mina_Salman + 828*ShipmentAmount_Port_of_Piraeus_Port_of_Haifa + 4839*ShipmentAmount_Port_of_Ploce_Mina_Salman + 1449*ShipmentAmount_Port_of_Ploce_Port_of_Haifa + 10383*ShipmentAmount_Port_of_Puerto_Cabello_Mina_Salman + 6995*ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Haifa + 7980*ShipmentAmount_Port_of_Reykjavik_Mina_Salman + 4529*ShipmentAmount_Port_of_Reykjavik_Port_of_Haifa + 8523*ShipmentAmount_Port_of_Riga_Mina_Salman + 5135*ShipmentAmount_Port_of_Riga_Port_of_Haifa + 7284*ShipmentAmount_Port_of_Rotterdam_Mina_Salman + 3894*ShipmentAmount_Port_of_Rotterdam_Port_of_Haifa + 1253*ShipmentAmount_Port_of_Salalah_Mina_Salman + 2367*ShipmentAmount_Port_of_Salalah_Port_of_Haifa + 9662*ShipmentAmount_Port_of_Santos_Mina_Salman + 7667*ShipmentAmount_Port_of_Santos_Port_of_Haifa + 6882*ShipmentAmount_Port_of_Shanghai_Mina_Salman + 8336*ShipmentAmount_Port_of_Shanghai_Port_of_Haifa + 8787*ShipmentAmount_Port_of_St._Petersburg_Mina_Salman + 5398*ShipmentAmount_Port_of_St._Petersburg_Port_of_Haifa + 4660*ShipmentAmount_Port_of_Tanjung_Priok_Mina_Salman + 6000*ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Haifa + 9753*ShipmentAmount_Port_of_Tauranga_Mina_Salman + 11093*ShipmentAmount_Port_of_Tauranga_Port_of_Haifa + 8662*ShipmentAmount_Port_of_Tema_Mina_Salman + 5451*ShipmentAmount_Port_of_Tema_Port_of_Haifa + 15871*ShipmentAmount_Port_of_Vancouver_Mina_Salman + 12461*ShipmentAmount_Port_of_Vancouver_Port_of_Haifa + 7981*ShipmentAmount_Port_of_Vladivostok_Mina_Salman + 9435*ShipmentAmount_Port_of_Vladivostok_Port_of_Haifa + 0\n",
       "SUBJECT TO\n",
       "_C1: ShipmentAmount_Penang_Port_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Aktau_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Alexandria_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Algeciras_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Baku_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Bandar_Abbas_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Basel_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Belgrade_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Bratislava_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Budapest_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Constanta_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Doha_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Douala_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Durban_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Gdansk_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Gothenburg_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Hedland_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Immingham_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Koper_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Lagos_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Manzanillo_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Maputo_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Marseille_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Mersin_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Mina_Salman_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Montreal_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Nagoya_Mina_Salman\n",
       " + ShipmentAmount_Port_of_New_York_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Newcastle_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Odessa_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Oslo_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Piraeus_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Ploce_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Puerto_Cabello_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Reykjavik_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Riga_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Rotterdam_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Salalah_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Santos_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Shanghai_Mina_Salman\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Tanjung_Priok_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Tauranga_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Tema_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Vancouver_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Vladivostok_Mina_Salman >= 316298748.3\n",
       "\n",
       "_C2: ShipmentAmount_Penang_Port_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Aktau_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Baku_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Basel_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Belgrade_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Bratislava_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Constanta_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Douala_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Gothenburg_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Hedland_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Koper_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Maputo_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Mina_Salman_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Newcastle_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Odessa_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Oslo_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Piraeus_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Ploce_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Reykjavik_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Riga_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Tauranga_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Tema_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Haifa >= 275071343.7\n",
       "\n",
       "VARIABLES\n",
       "ShipmentAmount_Penang_Port_Mina_Salman Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Aktau_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Aktau_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Baku_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Baku_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Bandar_Abbas_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Basel_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Basel_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Belgrade_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Belgrade_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Bratislava_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Bratislava_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Constanta_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Constanta_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Doha_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Douala_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Douala_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Durban_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Gothenburg_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Gothenburg_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Hedland_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Hedland_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Koper_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Koper_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Maputo_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Maputo_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Mina_Salman_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Mina_Salman_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_New_York_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Newcastle_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Newcastle_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Odessa_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Odessa_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Oslo_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Oslo_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Piraeus_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Piraeus_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Ploce_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Ploce_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Puerto_Cabello_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Reykjavik_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Reykjavik_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Riga_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Riga_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Santos_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Tanjung_Priok_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Tauranga_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Tauranga_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Tema_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Tema_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Haifa Continuous"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Constraints\n",
    "for j in demand_points:\n",
    "    prob += sum(X[i][j] for i in supply_points) >= aluminium_demand[j]\n",
    "    \n",
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "3856*ShipmentAmount_Penang_Port_Mina_Salman + 5310*ShipmentAmount_Penang_Port_Port_of_Haifa + 5279*ShipmentAmount_Port_of_Aktau_Mina_Salman + 2201*ShipmentAmount_Port_of_Aktau_Port_of_Haifa + 3650*ShipmentAmount_Port_of_Alexandria_Mina_Salman + 370*ShipmentAmount_Port_of_Alexandria_Port_of_Haifa + 5631*ShipmentAmount_Port_of_Algeciras_Mina_Salman + 2242*ShipmentAmount_Port_of_Algeciras_Port_of_Haifa + 5574*ShipmentAmount_Port_of_Baku_Mina_Salman + 2497*ShipmentAmount_Port_of_Baku_Port_of_Haifa + 380*ShipmentAmount_Port_of_Bandar_Abbas_Mina_Salman + 3310*ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Haifa + 6851*ShipmentAmount_Port_of_Basel_Mina_Salman + 3812*ShipmentAmount_Port_of_Basel_Port_of_Haifa + 5416*ShipmentAmount_Port_of_Belgrade_Mina_Salman + 1994*ShipmentAmount_Port_of_Belgrade_Port_of_Haifa + 5717*ShipmentAmount_Port_of_Bratislava_Mina_Salman + 2293*ShipmentAmount_Port_of_Bratislava_Port_of_Haifa + 5615*ShipmentAmount_Port_of_Budapest_Mina_Salman + 2192*ShipmentAmount_Port_of_Budapest_Port_of_Haifa + 9420*ShipmentAmount_Port_of_Buenos_Aires_Mina_Salman + 8747*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Haifa + 4754*ShipmentAmount_Port_of_Constanta_Mina_Salman + 1330*ShipmentAmount_Port_of_Constanta_Port_of_Haifa + 140*ShipmentAmount_Port_of_Doha_Mina_Salman + 3553*ShipmentAmount_Port_of_Doha_Port_of_Haifa + 8271*ShipmentAmount_Port_of_Douala_Mina_Salman + 6011*ShipmentAmount_Port_of_Douala_Port_of_Haifa + 4824*ShipmentAmount_Port_of_Durban_Mina_Salman + 5318*ShipmentAmount_Port_of_Durban_Port_of_Haifa + 8277*ShipmentAmount_Port_of_Gdansk_Mina_Salman + 4889*ShipmentAmount_Port_of_Gdansk_Port_of_Haifa + 4620*ShipmentAmount_Port_of_Gioia_Tauro_Mina_Salman + 1230*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Haifa + 7825*ShipmentAmount_Port_of_Gothenburg_Mina_Salman + 4436*ShipmentAmount_Port_of_Gothenburg_Port_of_Haifa + 7561*ShipmentAmount_Port_of_Hamburg_Germany_Mina_Salman + 4173*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Haifa + 6034*ShipmentAmount_Port_of_Hedland_Mina_Salman + 7374*ShipmentAmount_Port_of_Hedland_Port_of_Haifa + 7334*ShipmentAmount_Port_of_Immingham_Mina_Salman + 3944*ShipmentAmount_Port_of_Immingham_Port_of_Haifa + 1589*ShipmentAmount_Port_of_Jawaharlal_Nehru_Mina_Salman + 3510*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Haifa + 327*ShipmentAmount_Port_of_Jebel_Ali_Mina_Salman + 3366*ShipmentAmount_Port_of_Jebel_Ali_Port_of_Haifa + 5057*ShipmentAmount_Port_of_Koper_Mina_Salman + 1667*ShipmentAmount_Port_of_Koper_Port_of_Haifa + 8570*ShipmentAmount_Port_of_Lagos_Mina_Salman + 5662*ShipmentAmount_Port_of_Lagos_Port_of_Haifa + 14552*ShipmentAmount_Port_of_Los_Angeles_Mina_Salman + 11048*ShipmentAmount_Port_of_Los_Angeles_Port_of_Haifa + 13061*ShipmentAmount_Port_of_Manzanillo_Mina_Salman + 9673*ShipmentAmount_Port_of_Manzanillo_Port_of_Haifa + 4563*ShipmentAmount_Port_of_Maputo_Mina_Salman + 5056*ShipmentAmount_Port_of_Maputo_Port_of_Haifa + 5332*ShipmentAmount_Port_of_Marseille_Mina_Salman + 1946*ShipmentAmount_Port_of_Marseille_Port_of_Haifa + 3831*ShipmentAmount_Port_of_Mersin_Mina_Salman + 233*ShipmentAmount_Port_of_Mersin_Port_of_Haifa + 3621*ShipmentAmount_Port_of_Mina_Salman_Port_of_Haifa + 9594*ShipmentAmount_Port_of_Montreal_Mina_Salman + 6336*ShipmentAmount_Port_of_Montreal_Port_of_Haifa + 7759*ShipmentAmount_Port_of_Nagoya_Mina_Salman + 9214*ShipmentAmount_Port_of_Nagoya_Port_of_Haifa + 9168*ShipmentAmount_Port_of_New_York_Mina_Salman + 5756*ShipmentAmount_Port_of_New_York_Port_of_Haifa + 8544*ShipmentAmount_Port_of_Newcastle_Mina_Salman + 9885*ShipmentAmount_Port_of_Newcastle_Port_of_Haifa + 5139*ShipmentAmount_Port_of_Novorossiysk_Mina_Salman + 1715*ShipmentAmount_Port_of_Novorossiysk_Port_of_Haifa + 4957*ShipmentAmount_Port_of_Odessa_Mina_Salman + 1533*ShipmentAmount_Port_of_Odessa_Port_of_Haifa + 7928*ShipmentAmount_Port_of_Oslo_Mina_Salman + 4539*ShipmentAmount_Port_of_Oslo_Port_of_Haifa + 4234*ShipmentAmount_Port_of_Piraeus_Mina_Salman + 828*ShipmentAmount_Port_of_Piraeus_Port_of_Haifa + 4839*ShipmentAmount_Port_of_Ploce_Mina_Salman + 1449*ShipmentAmount_Port_of_Ploce_Port_of_Haifa + 10383*ShipmentAmount_Port_of_Puerto_Cabello_Mina_Salman + 6995*ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Haifa + 7980*ShipmentAmount_Port_of_Reykjavik_Mina_Salman + 4529*ShipmentAmount_Port_of_Reykjavik_Port_of_Haifa + 8523*ShipmentAmount_Port_of_Riga_Mina_Salman + 5135*ShipmentAmount_Port_of_Riga_Port_of_Haifa + 7284*ShipmentAmount_Port_of_Rotterdam_Mina_Salman + 3894*ShipmentAmount_Port_of_Rotterdam_Port_of_Haifa + 1253*ShipmentAmount_Port_of_Salalah_Mina_Salman + 2367*ShipmentAmount_Port_of_Salalah_Port_of_Haifa + 9662*ShipmentAmount_Port_of_Santos_Mina_Salman + 7667*ShipmentAmount_Port_of_Santos_Port_of_Haifa + 6882*ShipmentAmount_Port_of_Shanghai_Mina_Salman + 8336*ShipmentAmount_Port_of_Shanghai_Port_of_Haifa + 8787*ShipmentAmount_Port_of_St._Petersburg_Mina_Salman + 5398*ShipmentAmount_Port_of_St._Petersburg_Port_of_Haifa + 4660*ShipmentAmount_Port_of_Tanjung_Priok_Mina_Salman + 6000*ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Haifa + 9753*ShipmentAmount_Port_of_Tauranga_Mina_Salman + 11093*ShipmentAmount_Port_of_Tauranga_Port_of_Haifa + 8662*ShipmentAmount_Port_of_Tema_Mina_Salman + 5451*ShipmentAmount_Port_of_Tema_Port_of_Haifa + 15871*ShipmentAmount_Port_of_Vancouver_Mina_Salman + 12461*ShipmentAmount_Port_of_Vancouver_Port_of_Haifa + 7981*ShipmentAmount_Port_of_Vladivostok_Mina_Salman + 9435*ShipmentAmount_Port_of_Vladivostok_Port_of_Haifa + 0\n",
       "SUBJECT TO\n",
       "_C1: ShipmentAmount_Penang_Port_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Aktau_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Alexandria_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Algeciras_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Baku_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Bandar_Abbas_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Basel_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Belgrade_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Bratislava_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Budapest_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Constanta_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Doha_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Douala_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Durban_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Gdansk_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Gothenburg_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Hedland_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Immingham_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Koper_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Lagos_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Manzanillo_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Maputo_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Marseille_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Mersin_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Mina_Salman_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Montreal_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Nagoya_Mina_Salman\n",
       " + ShipmentAmount_Port_of_New_York_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Newcastle_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Odessa_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Oslo_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Piraeus_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Ploce_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Puerto_Cabello_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Reykjavik_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Riga_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Rotterdam_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Salalah_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Santos_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Shanghai_Mina_Salman\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Tanjung_Priok_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Tauranga_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Tema_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Vancouver_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Vladivostok_Mina_Salman >= 316298748.3\n",
       "\n",
       "_C2: ShipmentAmount_Penang_Port_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Aktau_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Baku_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Basel_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Belgrade_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Bratislava_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Constanta_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Douala_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Gothenburg_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Hedland_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Koper_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Maputo_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Mina_Salman_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Newcastle_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Odessa_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Oslo_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Piraeus_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Ploce_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Reykjavik_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Riga_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Tauranga_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Tema_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Haifa\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Haifa >= 275071343.7\n",
       "\n",
       "_C3: ShipmentAmount_Port_of_Buenos_Aires_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Haifa = 1750418.373\n",
       "\n",
       "_C4: ShipmentAmount_Port_of_Newcastle_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Newcastle_Port_of_Haifa = 1108486.991\n",
       "\n",
       "_C5: ShipmentAmount_Port_of_Hedland_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Hedland_Port_of_Haifa = 5259760.632\n",
       "\n",
       "_C6: ShipmentAmount_Port_of_Baku_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Baku_Port_of_Haifa = 152870.6086\n",
       "\n",
       "_C7: ShipmentAmount_Port_of_Mina_Salman_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Mina_Salman_Port_of_Haifa = 5846232.525\n",
       "\n",
       "_C8: ShipmentAmount_Port_of_Ploce_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Ploce_Port_of_Haifa = 583785.2387\n",
       "\n",
       "_C9: ShipmentAmount_Port_of_Santos_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Haifa = 2405044.613\n",
       "\n",
       "_C10: ShipmentAmount_Port_of_Douala_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Douala_Port_of_Haifa = 286578.9516\n",
       "\n",
       "_C11: ShipmentAmount_Port_of_Montreal_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Haifa = 7130120.719\n",
       "\n",
       "_C12: ShipmentAmount_Port_of_Vancouver_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Haifa = 2122464.834\n",
       "\n",
       "_C13: ShipmentAmount_Port_of_Shanghai_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Haifa = 267850261.2\n",
       "\n",
       "_C14: ShipmentAmount_Port_of_Alexandria_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Haifa = 1178963.884\n",
       "\n",
       "_C15: ShipmentAmount_Port_of_Marseille_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Haifa = 2903970.469\n",
       "\n",
       "_C16: ShipmentAmount_Port_of_Hamburg_Germany_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Haifa = 2541200.847\n",
       "\n",
       "_C17: ShipmentAmount_Port_of_Tema_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Tema_Port_of_Haifa = 159171.9705\n",
       "\n",
       "_C18: ShipmentAmount_Port_of_Piraeus_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Piraeus_Port_of_Haifa = 662387.6583\n",
       "\n",
       "_C19: ShipmentAmount_Port_of_Budapest_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Haifa = 7691376.454\n",
       "\n",
       "_C20: ShipmentAmount_Port_of_Reykjavik_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Reykjavik_Port_of_Haifa = 56655403.55\n",
       "\n",
       "_C21: ShipmentAmount_Port_of_Jawaharlal_Nehru_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Haifa = 5188197.412\n",
       "\n",
       "_C22: ShipmentAmount_Port_of_Tanjung_Priok_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Haifa = 137744624.1\n",
       "\n",
       "_C23: ShipmentAmount_Port_of_Bandar_Abbas_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Haifa = 1888157.9\n",
       "\n",
       "_C24: ShipmentAmount_Port_of_Gioia_Tauro_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Haifa = 28443.63952\n",
       "\n",
       "_C25: ShipmentAmount_Port_of_Nagoya_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Haifa = 724801.9126\n",
       "\n",
       "_C26: ShipmentAmount_Port_of_Aktau_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Aktau_Port_of_Haifa = 1052630.169\n",
       "\n",
       "_C27: ShipmentAmount_Penang_Port_Mina_Salman\n",
       " + ShipmentAmount_Penang_Port_Port_of_Haifa = 1883968.768\n",
       "\n",
       "_C28: ShipmentAmount_Port_of_Manzanillo_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Haifa = 110143.3931\n",
       "\n",
       "_C29: ShipmentAmount_Port_of_Belgrade_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Belgrade_Port_of_Haifa = 380422.1379\n",
       "\n",
       "_C30: ShipmentAmount_Port_of_Maputo_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Maputo_Port_of_Haifa = 8080791.105\n",
       "\n",
       "_C31: ShipmentAmount_Port_of_Rotterdam_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Haifa = 964428.5326\n",
       "\n",
       "_C32: ShipmentAmount_Port_of_Tauranga_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Tauranga_Port_of_Haifa = 1312543.345\n",
       "\n",
       "_C33: ShipmentAmount_Port_of_Lagos_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Haifa = 71076.45981\n",
       "\n",
       "_C34: ShipmentAmount_Port_of_Oslo_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Oslo_Port_of_Haifa = 5162036.898\n",
       "\n",
       "_C35: ShipmentAmount_Port_of_Salalah_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Haifa = 1900360.293\n",
       "\n",
       "_C36: ShipmentAmount_Port_of_Gdansk_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Haifa = 148867.4242\n",
       "\n",
       "_C37: ShipmentAmount_Port_of_Doha_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Haifa = 2820733.861\n",
       "\n",
       "_C38: ShipmentAmount_Port_of_Constanta_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Constanta_Port_of_Haifa = 1017712.828\n",
       "\n",
       "_C39: ShipmentAmount_Port_of_Vladivostok_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Haifa = 7634624.871\n",
       "\n",
       "_C40: ShipmentAmount_Port_of_Novorossiysk_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Haifa = 3723801.549\n",
       "\n",
       "_C41: ShipmentAmount_Port_of_St._Petersburg_Mina_Salman\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Haifa = 3766639.035\n",
       "\n",
       "_C42: ShipmentAmount_Port_of_Bratislava_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Bratislava_Port_of_Haifa = 1121081.872\n",
       "\n",
       "_C43: ShipmentAmount_Port_of_Koper_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Koper_Port_of_Haifa = 351723.7786\n",
       "\n",
       "_C44: ShipmentAmount_Port_of_Durban_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Haifa = 2886609.143\n",
       "\n",
       "_C45: ShipmentAmount_Port_of_Algeciras_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Haifa = 1384623.344\n",
       "\n",
       "_C46: ShipmentAmount_Port_of_Gothenburg_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Gothenburg_Port_of_Haifa = 533795.8943\n",
       "\n",
       "_C47: ShipmentAmount_Port_of_Basel_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Basel_Port_of_Haifa = 105019.7955\n",
       "\n",
       "_C48: ShipmentAmount_Port_of_Riga_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Riga_Port_of_Haifa = 5143227.069\n",
       "\n",
       "_C49: ShipmentAmount_Port_of_Mersin_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Haifa = 237073.6777\n",
       "\n",
       "_C50: ShipmentAmount_Port_of_Odessa_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Odessa_Port_of_Haifa = 299230.0617\n",
       "\n",
       "_C51: ShipmentAmount_Port_of_Jebel_Ali_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Haifa = 26856798.65\n",
       "\n",
       "_C52: ShipmentAmount_Port_of_Immingham_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Haifa = 0\n",
       "\n",
       "_C53: ShipmentAmount_Port_of_New_York_Mina_Salman\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Haifa = 0\n",
       "\n",
       "_C54: ShipmentAmount_Port_of_Los_Angeles_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Haifa = 0\n",
       "\n",
       "_C55: ShipmentAmount_Port_of_Puerto_Cabello_Mina_Salman\n",
       " + ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Haifa = 557404.5143\n",
       "\n",
       "VARIABLES\n",
       "ShipmentAmount_Penang_Port_Mina_Salman Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Aktau_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Aktau_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Baku_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Baku_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Bandar_Abbas_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Basel_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Basel_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Belgrade_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Belgrade_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Bratislava_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Bratislava_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Constanta_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Constanta_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Doha_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Douala_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Douala_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Durban_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Gothenburg_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Gothenburg_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Hedland_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Hedland_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Koper_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Koper_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Maputo_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Maputo_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Mina_Salman_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Mina_Salman_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_New_York_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Newcastle_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Newcastle_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Odessa_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Odessa_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Oslo_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Oslo_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Piraeus_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Piraeus_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Ploce_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Ploce_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Puerto_Cabello_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Reykjavik_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Reykjavik_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Riga_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Riga_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Santos_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Tanjung_Priok_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Tauranga_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Tauranga_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Tema_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Tema_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Haifa Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Mina_Salman Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Haifa Continuous"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Constraints\n",
    "for i in supply_points:\n",
    "    prob += sum(X[i][j] for j in demand_points) == aluminium_supply[i]\n",
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Status: Optimal\n",
      "ShipmentAmount_Penang_Port_Port_of_Haifa = 1883968.8\n",
      "ShipmentAmount_Port_of_Aktau_Port_of_Haifa = 1052630.2\n",
      "ShipmentAmount_Port_of_Alexandria_Port_of_Haifa = 1178963.9\n",
      "ShipmentAmount_Port_of_Algeciras_Port_of_Haifa = 1384623.3\n",
      "ShipmentAmount_Port_of_Baku_Port_of_Haifa = 152870.61\n",
      "ShipmentAmount_Port_of_Bandar_Abbas_Mina_Salman = 1888157.9\n",
      "ShipmentAmount_Port_of_Basel_Port_of_Haifa = 105019.8\n",
      "ShipmentAmount_Port_of_Belgrade_Port_of_Haifa = 380422.14\n",
      "ShipmentAmount_Port_of_Bratislava_Port_of_Haifa = 1121081.9\n",
      "ShipmentAmount_Port_of_Budapest_Port_of_Haifa = 7691376.5\n",
      "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Haifa = 1750418.4\n",
      "ShipmentAmount_Port_of_Constanta_Port_of_Haifa = 1017712.8\n",
      "ShipmentAmount_Port_of_Doha_Mina_Salman = 2820733.9\n",
      "ShipmentAmount_Port_of_Douala_Port_of_Haifa = 286578.95\n",
      "ShipmentAmount_Port_of_Durban_Port_of_Haifa = 2886609.1\n",
      "ShipmentAmount_Port_of_Gdansk_Port_of_Haifa = 148867.42\n",
      "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Haifa = 28443.64\n",
      "ShipmentAmount_Port_of_Gothenburg_Port_of_Haifa = 533795.89\n",
      "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Haifa = 2541200.8\n",
      "ShipmentAmount_Port_of_Hedland_Port_of_Haifa = 5259760.6\n",
      "ShipmentAmount_Port_of_Jawaharlal_Nehru_Mina_Salman = 5188197.4\n",
      "ShipmentAmount_Port_of_Jebel_Ali_Mina_Salman = 26856799.0\n",
      "ShipmentAmount_Port_of_Koper_Port_of_Haifa = 351723.78\n",
      "ShipmentAmount_Port_of_Lagos_Port_of_Haifa = 71076.46\n",
      "ShipmentAmount_Port_of_Manzanillo_Port_of_Haifa = 110143.39\n",
      "ShipmentAmount_Port_of_Maputo_Port_of_Haifa = 8080791.1\n",
      "ShipmentAmount_Port_of_Marseille_Port_of_Haifa = 2903970.5\n",
      "ShipmentAmount_Port_of_Mersin_Port_of_Haifa = 237073.68\n",
      "ShipmentAmount_Port_of_Mina_Salman_Mina_Salman = 5846232.5\n",
      "ShipmentAmount_Port_of_Montreal_Port_of_Haifa = 7130120.7\n",
      "ShipmentAmount_Port_of_Nagoya_Mina_Salman = 724801.91\n",
      "ShipmentAmount_Port_of_Newcastle_Port_of_Haifa = 1108487.0\n",
      "ShipmentAmount_Port_of_Novorossiysk_Port_of_Haifa = 3723801.5\n",
      "ShipmentAmount_Port_of_Odessa_Port_of_Haifa = 299230.06\n",
      "ShipmentAmount_Port_of_Oslo_Port_of_Haifa = 5162036.9\n",
      "ShipmentAmount_Port_of_Piraeus_Port_of_Haifa = 662387.66\n",
      "ShipmentAmount_Port_of_Ploce_Port_of_Haifa = 583785.24\n",
      "ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Haifa = 557404.51\n",
      "ShipmentAmount_Port_of_Reykjavik_Port_of_Haifa = 56655404.0\n",
      "ShipmentAmount_Port_of_Riga_Port_of_Haifa = 5143227.1\n",
      "ShipmentAmount_Port_of_Rotterdam_Port_of_Haifa = 964428.53\n",
      "ShipmentAmount_Port_of_Salalah_Port_of_Haifa = 1900360.3\n",
      "ShipmentAmount_Port_of_Santos_Port_of_Haifa = 2405044.6\n",
      "ShipmentAmount_Port_of_Shanghai_Mina_Salman = 265339200.0\n",
      "ShipmentAmount_Port_of_Shanghai_Port_of_Haifa = 2511059.1\n",
      "ShipmentAmount_Port_of_St._Petersburg_Port_of_Haifa = 3766639.0\n",
      "ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Haifa = 137744620.0\n",
      "ShipmentAmount_Port_of_Tauranga_Port_of_Haifa = 1312543.3\n",
      "ShipmentAmount_Port_of_Tema_Port_of_Haifa = 159171.97\n",
      "ShipmentAmount_Port_of_Vancouver_Port_of_Haifa = 2122464.8\n",
      "ShipmentAmount_Port_of_Vladivostok_Mina_Salman = 7634624.9\n",
      "Total kilogram_miles = 3393473037138.2407\n"
     ]
    }
   ],
   "source": [
    "prob.solve()\n",
    "\n",
    "print(\"Status:\", LpStatus[prob.status])\n",
    "\n",
    "for v in prob.variables():\n",
    "    if v.varValue > 0:\n",
    "        print(v.name, \"=\", v.varValue)\n",
    "\n",
    "print(\"Total kilogram_miles =\", value(prob.objective))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
